/***********
 * Sidebar *
 ***********/
.sidebar {
  border-style: none;
  border-width: 0;
  background-color: mix($bg_color, $base_color, 50%);

  .frame{
    border: none;
  }

  @at-root %sidebar_left,
  &:dir(ltr),
  &.left,
  &.left:dir(rtl) {
    border-right: none;
    border-left-style: none;
  }

  @at-root %sidebar_right
  &:dir(rtl),
  &.right {
    border-left: 1px solid $borders_color;
    border-right-style: none;
  }

  &:backdrop {
    background-color: $backdrop_sidebar_bg_color;
    border-color: $backdrop_borders_color;
    transition: $backdrop_transition;
  }

  list { background-color: $base_color; }

  row{
    &:selected{
      background: transparent;
      color: $selected_bg_color;
      label{
        color: $selected_bg_color;
      }
      &:backdrop{
        color: $backdrop_selected_bg_color;
        background: transparent;
        label{
          color: $backdrop_selected_bg_color;
        }  
      }
      &:hover{
        background-color: transparentize($selected_bg_color, 0.8);
      }
    }
  }

    //elementary os file manager
    &.source-list{
      background: $base_color;
      padding: 4px 0px;
      &.view{
  
      &:selected {
        &:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
  
        &.has-open-popup,
        &:hover { background-color: transparentize($selected_bg_color, 0.1); }
  
        &:backdrop { background-color: $backdrop_selected_bg_color; }
      }
        &:hover, iconview.source-list:hover { 
            background-color: if(variant == light, transparentize($bg_color, 0.6), transparentize($bg_color, 0.6)); 
        }
      }
    }
    

  paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & {
    border-style: none;
    border-color: $borders_color;
    list {
      background-color: if($variant == 'light', darken(#F4F3EE, 1%), $base_color); 
      color: if($variant == 'light', $headerbar_color, $fg_color); 
     }
  }
}
}

stacksidebar {
  &.sidebar {
    &:dir(ltr),
    &.left,
    &.left:dir(rtl) { list { @extend %sidebar_left; }}

    &:dir(rtl),
    &.right { list { @extend %sidebar_right; }}
  }

  row {
    padding: 10px 4px;

    > label {
      padding-left: 6px;
      padding-right: 6px;
    }

    &.needs-attention > label {
      @extend %needs_attention;

      background-size: 6px 6px, 0 0;
    }
  }
}
